#!usr/bin/node

var fs = require("fs");
var http = require("http");

var mine = "image/jpg";
var data = fs.readFileSync("./qr-code.jpg").toString("base64");
var uri = "data" + mine + ";base64," + data;

var html = '<!DOCTYPE html>\n<html>\<body>\n<img alt="logo" src="'+ uri + '"\>\n</body>\n</html>';

http.createServer(function(req,res) {
  console.log(req.headers);
  res.end(html);
}).listen(8080);
